

#ifndef __PHONE_REC_TREE_H__
#define __PHONE_REC_TREE_H__

class phone_rec_tree : public CTreeCtrl
{
	DECLARE_DYNAMIC(phone_rec_tree)

public:
	phone_rec_tree();
	virtual ~phone_rec_tree();
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
	void set_parent_wnd(HWND hwnd){ this->parent_wnd_ = hwnd; }
private:
	HWND parent_wnd_;
protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
};

#endif